package com.xmb.quick.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.xmb.quick.entity.SysRole;
import com.xmb.quick.mapper.SysRoleMapper;
import com.xmb.quick.service.ISysRoleService;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author huangping
 * @since 2020-03-04
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {

	@Override
	public Page<SysRole> selectInfoPage(Page<SysRole> page, Wrapper<SysRole> ew) {
		return selectPage(page, ew);
	}

	@Override
	public SysRole selectInfoOne(Wrapper<SysRole> ew) {
		return selectOne(ew);
	}

	@Override
	public void add(SysRole sysRole) throws Exception {
		insert(sysRole);
	}

	@Override
	public void edit(SysRole sysRole) throws Exception {
		updateById(sysRole);
	}

	@Override
	public void remove(Wrapper<SysRole> ew) throws Exception {
		delete(ew);
	}

	@Override
	public List<SysRole> selectInfoList(Wrapper<SysRole> ew) {
		return selectList(ew);
	}

	@Override
	public int selectInfoCount(Wrapper<SysRole> ew) {
		return selectCount(ew);
	}
}
